package day0227;

public class StringBufferDemo {

    public static void main(String[] args) {
        StringBuffer stringBuffer = new StringBuffer(1);
        // 链式调用
        stringBuffer.append("abc")
                .append("def")
                .append("gh");


        String s = stringBuffer.toString();

        System.out.println(stringBuffer);

    }
}
